{yun:}include file="$userstyle/header.htm"{/yun}
<div class="yun_w1200">
	{yun:}include file="$userstyle/left.htm"{/yun}
    <div class="yun_m_rightbox fltR mt20 re">
		
		<div class="member_right_index_h1 fltL"> 
			<span class="member_right_h1_span fltL">系统消息</span> 
			<i class="member_right_h1_icon user_bg"></i>
		</div>

        <div>
		 	<iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
            <form action="index.php" method="get" target="supportiframe" id='myform' class="layui-form">
				<input type="hidden" name="c" value="sysnews" />
				<input type="hidden" name="act" value="del" />
				
				<div id="gms_showclew"></div>
				
				<div class="resume_box_list">
					{yun:}if !empty($rows){/yun}
						<div class="sysynews_tit ">
							<div class="sysynews_span ">&nbsp;</div>
							<div class="sysynews_span sysynews_name"><em class="List_Title_span_name">内容</em></div>
							<div class="sysynews_span sysynews_time" style="width:200px;">时间</div>
							<div class="sysynews_span sysynews_cz">操作</div>
						</div>
					{yun:}/if{/yun}
					
					{yun:}foreach from=$rows item=item{/yun}
						<div class="sysynews_list">
							<div class="sysynews_span " >
								<input type="checkbox" value="{yun:}$item.id{/yun}" name="del[]" class="" lay-skin="primary">
							</div>
							<div class="sysynews_span sysynews_name" {yun:}if $item.remind_status==0{/yun}style="font-weight:bold"{yun:}/if{/yun}>{yun:}$item.content{/yun}{yun:}if $item.remind_status==0{/yun} <span class="sysynews_span_nolook">未读</span> {yun:}/if{/yun}</div>
					   		<div class="sysynews_span sysynews_time" style="width:200px;">{yun:}$item.ctime|date_format:"%Y-%m-%d %H:%M"{/yun}</div>
						   	<div class="sysynews_span sysynews_cz">
							   	<a href="javascript:void(0)" onclick="showsys('{yun:}$item.content_all{/yun}','{yun:}$item.id{/yun}','{yun:}$item.ctime|date_format:"%Y-%m-%d %H:%M"{/yun}'); "> 查看</a> <span class="jobnotice_cz_line">|</span>
								<a href="javascript:void(0)" onclick="layer_del('确定要删除？','index.php?c=sysnews&act=del&id={yun:}$item.id{/yun}');" class="List_dete  cblue">删除</a>
							</div>
						</div>
					{yun:}foreachelse{/yun}
						<div class="clear"></div>
						<div class="msg_no"> 暂无系统消息！ </div>
						<div class="clear"></div>
					{yun:}/foreach{/yun}
					
					{yun:}if !empty($rows){/yun}   
					<div class="checkall_toyota">
						<input id='checkAll' type="checkbox" lay-filter="alluser" lay-skin="primary" class="">
						<input type="button" value="删除" class="job_operation_bth" onclick="return really('del[]');" />
						<input type="button" value="设为已读" class="job_operation_bth" onclick="return isReaded('del[]');" />
						<input type="button" value="全部标记为已读" class="job_operation_bth" onclick="return readAll();" />
					</div>
					{yun:}/if{/yun}
					<div class="diggg">{yun:}$pagenav{/yun}</div>
				</div>
			</form>
        </div>
    </div>
</div>
<div id="show" style="display:none;width:100%;">
	<div class="sys_tm">
	    <p><i>时间：</i><span id="systime"></span></p>
	    <p><i>内容：</i><span id="sysshow"></span></p>
	</div>
	<div class="sys_bot" style="padding-bottom:20px;">
	<a class="sys_bot_del" href="javascript:void(0)" id="delsys"> 删除</a><a class="sys_bot_qx" href="javascript:void(0)" onclick="window.location.reload();" class="cblue">返回</a>
	</div>
</div>
<script>
	layui.use(['form','layer', 'laydate'], function(){
    	var $ = layui.$,
			form = layui.form,
			laydate = layui.laydate,
			layer = layui.layer;
    	
    	form.on('checkbox(alluser)', function (data) {
       	 	$("input[name='del[]']").each(function () {
            	this.checked = data.elem.checked;
        	});
        	form.render('checkbox');
      	});
  	});
</script>
{yun:}include file="$userstyle/footer.htm"{/yun}